<% content_for :css do %>
  <%= stylesheet_link_tag 'index','order_mades_index' %>
<% end %>
<% if params[:target] == 'being_entered' %>
<% content_for :title do %>-入库登记<% end %>
<div class='top'>
  <div class='title'>
    <b>库存管理</b><span>订做入库</span>
  </div>
</div>
<% else %>
<% content_for :title do %>-订单查询<% end %>
<div class='top'>
  <div class='title'>
    <b>厂家订做</b><span>订单查询</span>
  </div>
</div>
<% end %>
<div class="search">
  <%= form_tag order_mades_url,
        :method => :get do %> 
    <%= text_field_tag :key_words, params[:key_words] ,:class => :search, :onfocus => 'select()' %>
    <%= submit_tag '找订做单', :class => :bb %>
    <%= link_to '下订做单', new_order_made_url, :target => :_blank,:class => :new %>
  <% end %>
</div>
<div class="page">
  <div class="total_currnet"><p>共</p><b><%= @order_mades.size %></b><p>条订做单</p></div>
</div>
<div class="index">
<% @order_mades.each do |order_made|  %>  
  <div id='order_made_<%= order_made.id %>' class="monomer">
    <%= render :partial => 'order_made_in_index.html', :locals => { :order_made => order_made } %>
  </div>
<% end %>  
</div>
<div class="page">
  <div class="total_currnet"><p>共</p><b><%= @order_mades.size %></b><p>条订单记录</p></div>
</div>
        